//
//  PhotoCropManager.h
//  AncientVillage
//
//  Created by 陈志亮 on 2018/9/14.
//  Copyright © 2018年 LSJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DSBaseViewController.h"
#import "UploadRequstTaskTool.h"
//#import "TBAuthorizationManager.h"
#import "TZImageManager.h"
#import "TZImagePickerController.h"



typedef void (^resultURLBlock)(NSString*imgStr,UIImage*img);

@interface PhotoCropManager : NSObject<TZImagePickerControllerDelegate,UINavigationControllerDelegate,UIAlertViewDelegate,UIImagePickerControllerDelegate>

@property(nonatomic,copy)resultURLBlock resultBlock;
@property(nonatomic,strong)DSBaseViewController*baseVC;
@property(nonatomic,assign)BOOL isUploadAvater;
@property(nonatomic,assign)CGFloat imgSacle;//剪切比例
@property(nonatomic,assign)BOOL isNeedCrop;//是否需要剪切

+(PhotoCropManager*)photoCropSharedManager;



//从相册选择
-(void)chosePhotoFromAsset:(BOOL)isCrop;
//需传入当前控制器和剪切比例,暂时没有剪切需求，传入0即可 isAvater这个参数用于判断是否是上传头像
-(void)showHintView:(UIViewController*)inViewController scale:(CGFloat)cropScale isAvater:(BOOL)isAvater  andResultBlock:(resultURLBlock)imgBlcok;


@end
